/************************************************************************

								Heroes IV
					  Copyright 2000, The 3DO Company

	------------------------------------------------------------------
  						 wave_stream.h

	$Header: /resource_editor/wave_stream.h $

	$NoKeywords: $

 ************************************************************************/

#if !defined( WAVE_STREAM_H_INCLUDED )
#define WAVE_STREAM_H_INCLUDED

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "shared_ptr.h"
#include "sound_stream.h"

// ---------------------------------------------------
// sound stream class for an in-memory wave file
// ---------------------------------------------------
class t_wave_stream : public t_sound_stream
{
public:
	t_wave_stream( t_shared_array<char> const& data, int size );

	virtual int read( void* data, t_uint32 size );

protected:
	int                  m_position;
	int                  m_size;
	t_shared_array<char> m_data;
};

#endif // WAVE_STREAM_H_INCLUDED